/*
 * Project Name: showtao
 * File Name: VehicleBrandRepository.java
 * Interface Name: VehicleBrandRepository
 *
 * Copyright 2014 showtao.com
 *
 * Licensed under the showtao.com
 *
 * http://showtao.com
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.showtao.front.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.showtao.front.domain.VehicleBrand;

public interface VehicleBrandRepository extends
		JpaRepository<VehicleBrand, Long>,
		JpaSpecificationExecutor<VehicleBrand> {
    
    @Query("select v from VehicleBrand v left join v.lines")
    List<VehicleBrand> findAllJoinLines();
    
}
